package com.wjgl.action;

import java.util.List;

import com.opensymphony.xwork2.ActionSupport;
import com.wjgl.domain.Institution;
import com.wjgl.service.InstitutionService;

public class ListAllInstitutionsAction extends ActionSupport{
	private InstitutionService institutionService;
	private List<Institution> institutions;
	
	public void setInstitutionService(InstitutionService institutionService) {
		this.institutionService = institutionService;
	}

	public List<Institution> getInstitutions() {
		return institutions;
	}

	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		institutions = institutionService.getAllInstitutions();
		return SUCCESS;
	}
	
	
	
}
